const state = {
    userInfo:{}
}
const mutations = {
    infoUsername(state, data) {
        state.userInfo = data.data
        window.sessionStorage.setItem("token", data.token);
        window.sessionStorage.setItem('userInfo', JSON.stringify(state.userInfo));
    }
}
const actions = {
    
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}